package com.ldk.springboot2021.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
//使用Mybatis-plus 实体类与哪个表对应
@TableName("tb_address")
@Accessors(chain = true)
public class Address {
    //指定表主键与实体类属性映射关系
    @TableId(type = IdType.AUTO)
    private Integer addressId;
    private String province;
    private String city;
    private String area;
    private String tel;
    @TableField("post_num")
    private String postNum;
}
